package lab02.test05;

public class cube {
    //构造函数
    cube() {}

    //属性
    float length;
    float width;
    float height;

    //初始化
    float initialise(float x,float y,float z){
        length=x;
        width=y;
        height=z;
        return 0;
    }

        //计算体积
        double cubage () {
            return length * width * height;
        }
    }

